package com.feng.zshop.backend.service;

import com.feng.zshop.backend.param.SysuserParam;
import com.feng.zshop.backend.vo.SysuserVO;
import com.feng.zshop.common.exception.ServiceException;
import com.feng.zshop.model.Sysuser;

import java.util.List;

/**
 * @author Lee
 * @date 2019/2/23
 */
public interface SysuserService {

    /**
     * 查找所有用户
     * @return
     */
    List<Sysuser> findAllSysuser();

    void deleteSysuserById(Integer id);

    Sysuser getSysuserById(Integer id);

    void add(SysuserVO sysuserVO) throws  ServiceException;

    void modify(SysuserVO sysuserVO) throws  ServiceException;

    void modifyStatusById(Integer id);

    List<Sysuser> selectByCondition(SysuserParam sysuserParam);

    Sysuser findByLoginNameAndPassword(String loginName, String password);
}
